<?php

?>

<div id="addFloor-tmpl" class="hidden">
    <!--
    <input type="hidden" name="" value="<?php //echo $action;?>">
    <input type="hidden" name="vw_id" value="<?php //echo Arr::getValue($params, 'id', 0); ?>">

    <div class="well well-small">-->
        <div class="pull-right btn-toolbar">
            <div class="btn-group">
                <button class="btn" id="def-{%fl_id%}"> Основной срез </button>
            </div>
            <div class="btn-group">
                <button class="btn" id="left-{%fl_id%}"> < </button>
                <button class="btn" id="right-{%fl_id%}"> > </button>
            </div>
            <div class="btn-group">
                <button class="btn btn-danger" id="del-{%fl_id%}"> X </button>
            </div>
        </div>

        <div class="control-group" id="cg-fl_name-{%fl_id%}">
            <label class="control-label" for="fl_name-{%fl_id%}">Название среза данных</label>
            <div class="controls">
                <input type="text" class="input-xlarge" id="fl_name-{%fl_id%}" name="fl_name-{%fl_id%}" value="{%fl_name%}">
            </div>
            <span class="help-inline"></span>
        </div>

        <div class="clear_both"></div>

        <div class="control-group" style="float: right;">
            <button type="button" class="btn btn-success" id="flAddSrc-open-{%fl_id%}"><i class="icon-plus icon-white"></i> Добавить</button>
        </div>
        <p style="padding-top:10px;">Источники данных (суммируются)</p>
        <div class="clear_both"></div>

        <table class="table table-striped table-bordered table-condensed" id="srcTable-{%fl_id%}">
            <thead>
                <tr>
                    <td>&nbsp;</td>
                    <td>Таблица</td>
                    <td>Столбец</td>
                    <td width="50%">Датчики</td>
                    <td>Время</td>
                </tr>
            </thead>

            <tbody></tbody>
        </table>

    <!--/div-->
</div>

<table id="flDsTr-tmpl" class="hidden">
    <tbody>
        <tr id="tr-flds-{%flds_id%}">
            <td id="td-flds-ctrl-{%flds_id%}">
                <div class="btn-group">
                    <button type="button" class="btn btn-success" id="btn-flds-edit-{%flds_id%}"><i class="icon-edit icon-white"></i></button>
                    <button type="button" class="btn btn-danger" id="btn-flds-del-{%flds_id%}"><i class="icon-remove icon-white"></i></button>
                </div>
            </td>
            <td id="td-flds-tbl-{%flds_id%}"></td>
            <td id="td-flds-whatsum-{%flds_id%}"></td>
            <td id="td-flds-sen-{%flds_id%}"></td>
            <td id="td-flds-interval-{%flds_id%}"></td>
        </tr>
    </tbody>
</table>